package main
{
	import com.standlibrary.ui.base.BaseSprite;
	
	import flash.display.Sprite;
	
	import main.manager.SenceManger;
	import main.manager.UIManager;

	public class main extends BaseSprite
	{
		public function main()
		{
			
		}
		
		public function start():void
		{
			//init layer
			setLayer();
			startGame();
		}
		
		private function setLayer():void
		{
			var  renderLayer:Sprite = new Sprite();
			addChild(renderLayer);
			SenceManger.instance.main = renderLayer;
			
			var  uiLayer:Sprite = new Sprite();
			addChild(uiLayer);
			UIManager.instance.main = uiLayer;
			
			var  topLayer:Sprite = new Sprite();
			addChild(topLayer);
		}
		
		private function startGame():void
		{
			SenceManger.instance.changeSence();
			
		}
	}
}